//
//  RecommendOfIntroduceTableViewCell.m
//  礼物
//
//  Created by dllo on 15/11/11.
//  Copyright © 2015年 liangsicheng. All rights reserved.
//

#import "RecommendOfIntroduceTableViewCell.h"

@implementation RecommendOfIntroduceTableViewCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self)
    {
        [self createSubviews];
    }
    return self;
}

- (void)createSubviews
{
    self.webView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, WIDTH, HEIGHT)];
    self.webView.delegate = self;
    [self addSubview:self.webView];
}

- (void)setModel:(RecommenDetailOneModel *)model
{
    _model=model;
    [self.webView loadHTMLString:_model.detail_html baseURL:nil];//加载html
    

}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
